<!DOCTYPE html>
<meta charset="UTF-8">
<h2>ComboTree Actions</h2>
<div style="padding: 10px">
	<a href="javascript:void(0)" data-type="button" onclick="getValue()">GetValue</a>
	<a href="javascript:void(0)" data-type="button" onclick="setValue()">SetValue</a>
	<a href="javascript:void(0)" data-type="button" onclick="disable()">Disable</a>
	<a href="javascript:void(0)" data-type="button" onclick="enable()">Enable</a>
</div>
<div style="padding: 10px; width: 270px;">
	<input id="combrtree_actions" data-type="combotree"
		data-defs="border:true,ptborder:false,method:'get',url: '${rc.contextPath}/assets/ui/jww/demo/testdata/tree_data1.json',required:true"
		style="width: 200px;">
</div>
<script type="text/javascript">
	function getValue() {
	    var val = $('#combrtree_actions').combotree('getValue');
	    alert(val);
    }
    function setValue() {
	    $('#combrtree_actions').combotree('setValue', '122');
    }
    function disable() {
	    $('#combrtree_actions').combotree('disable');
    }
    function enable() {
	    $('#combrtree_actions').combotree('enable');
    }
</script>
